import request from '@/utils/request'

export function sysJournalCollectQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/sysJournalCollect/openApi/query',
    params: data,
  })
}

export function sysJournalCollectQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/sysJournalCollect/openApi/query/' + id,
  })
}

export function sysJournalCollectAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/sysJournalCollect/add',
    data,
  })
}

export function sysJournalCollectDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/sysJournalCollect/delete/' + id,
  })
}

export function sysJournalCollectDeleteBySubjectsId(id) {
  return request({
    method: 'get',
    url: '/sysJournalCollect/deleteBySubjectsId/' + id,
  })
}

export function sysJournalCollectUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/sysJournalCollect/update',
    data,
  })
}

export function sysJournalCollectDeleteBatch(data) {
  //批量删除
  return request({
    method: 'post',
    url: '/sysJournalCollect/deleteBatch',
    data,
  })
}

export function sysJournalCollectDeleteIds(data) {
    //批量删除
    return request({
      method: 'post',
      url: '/sysJournalCollect/deleteBatchByResIds',
      data,
    })
  }

export function sysJournalCollectCheckSubjects(data) {
  //批量查询收藏状态
  return request({
    method: 'post',
    url: '/sysJournalCollect/checkSubjects',
    data,
  })
}

export function sysJournalCollectQueryMy(data) {
  //查询
  return request({
    method: 'get',
    url: '/sysJournalCollect/queryMy',
    params: data,
  })
}
